<include file="Public/header" />
<title>永卓分销订单管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<style>
	.menu_child_ul{
		display:none;
	}
</style>
<script>
	$(document).ready(function(){
		  $(".menu_dropdown").find('dl').eq(0).find('dd').show();
		  $(".menu_parent_li").click(function(){
			$(".menu_parent_li a").click(function(){
				Hui_admin_tab(this);
				return false;
			})
			if($(this).find('.menu_child_ul').length>0){
				if($(this).find('.menu_child_ul').is(':hidden')){
					$(this).parent().find('.Hui-iconfont').html('+');
					$(this).parent().find('.menu_child_ul').slideUp('fast');
					$(this).find('.Hui-iconfont').html('-');
					$(this).find('.menu_child_ul').slideDown('fast');
				}else{
					$(this).find('.Hui-iconfont').html('+');
					$(this).find('.menu_child_ul').slideUp('fast');
				}
			}
		  });
	});
</script>
</head>
<body>
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl">
			<a class="logo navbar-logo f-l mr-10 hidden-xs" >永卓分销订单管理系统</a>
			<a class="logo navbar-logo-m f-l mr-10 visible-xs" ><{$Think.session.agent.company}></a>
			<span class="logo navbar-slogan f-l mr-10 hidden-xs">v1.0</span>
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<li>
						<eq name="Think.session.agent.type" value="1">超级管理员</eq>
					</li>
					<li class="dropDown dropDown_hover"> 
						<a href="#" class="dropDown_A">
							<notempty name="childs_company">
								<{$childs_company.username}>
							<else />
								<{$Think.session.agent.username}>
							</notempty> 
							<i class="Hui-iconfont">&#xe6d5;</i>
						</a>
						
						<ul class="dropDown-menu menu radius box-shadow">
							<li>
								<a href="javascript:;" onclick="admin_open('密码修改','__MODULE__/System/editpwd','','800','480')" class="">密码修改</a>
							</li>
							<li><a href="__MODULE__/Reg/exits">退出</a></li>
						</ul>
					</li>
					<li id="Hui-msg">
						<a id="massage_a" href="javascript:;" data-href="__MODULE__/Massage/index" target="ifm" data-title="消息列表"><span id="massage" class="badge badge-danger"><{$massage_count}></span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（绿色）">默认（绿色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="black" title="黑色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="绿色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<aside class="Hui-aside">
	<input runat="server" id="divScrollValue" type="hidden" value="" />
	<div class="menu_dropdown bk_2">
	<dl class="menu-article">
			<dt><i class="Hui-iconfont">&#xe6cc</i>
				商品管理
				<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
			<dd>
				<ul>

						<li class="menu_parent_li">
							<span style="float:left;padding-left:18px;color:#666" class="Hui-iconfont">-</span>
							<a class="three_level" style="padding-left:10px;" data-href="__MODULE__/Warehouse/get_warehousebound/warehouse_code/11330213/manua_id/YZ201710130001/agent_id/<{$Think.session.agent.id}>" data-title="商品库存" href="javascript:void(0)">
								商品库存
							</a>
						</li>

				</ul>
			</dd>
		</dl>
		<notempty  name="warehouse_list">
		<!-- <dl class="menu-article"> -->
			<!-- <dt><i class="Hui-iconfont">&#xe645</i> -->
				<!-- 订单管理 -->
				<!-- <i class="Hui-iconfont menu_dropdown-arrow">&#xe6c5;</i></dt> -->
			<!-- <dd> -->
				<!-- <ul> -->
					<!-- <volist name="warehouse_list" id="vo"> -->
						<!-- <li class="menu_parent_li"> -->
							<!-- <span style="float:left;padding-left:18px;color:#666" class="Hui-iconfont">-</span> -->
							<!-- <a class="three_level" style="padding-left:10px;" data-href="__MODULE__/Order/order/warehouse_code/<{$vo.warehouse_code}>/manua_id/<{$manua_idlist}>" data-title="<{$vo.name}>" href="javascript:void(0)"> -->
								<!-- <{$vo.name}> -->
							<!-- </a> -->
						<!-- </li> -->
					<!-- </volist> -->
				<!-- </ul> -->
			<!-- </dd> -->
		<!-- </dl> -->
		</notempty>
		<volist name="list" id="data">
			<dl class="menu-article">
				<dt><i class="Hui-iconfont"><{$data.icon}></i>
					<{$data.name}>
					<eq name="data['controller']" value="Massage">
						<span id="massage_2" class="badge badge-danger"><{$massage_count}></span>
					</eq>
					<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
				<dd>
					<ul>
						<volist name="data['child']" id="child">
							<li class="menu_parent_li">
								<notempty  name="child['child']">
									<span style="float:left;padding-left:18px;color:#666" class="Hui-iconfont">+</span>
									<span style="color:#666;padding-left:10px;"><{$child.name}></span>
									<ul class="menu_child_ul" style="width:100%;float:left;padding-left:31px;">
										<volist name="child['child']" id="childs">
											<li class="menu_child_li" style="float:left;width:100%">
												<a class="three_level" style="padding-left:10px;" data-href="__MODULE__/<{$childs.controller}>/<{$childs.action}>" data-title="<{$childs.name}>" href="javascript:void(0)"><{$childs.name}></a>
											</li>
										</volist>
									</ul>
								<else />
									<span style="float:left;padding-left:18px;color:#666" class="Hui-iconfont">-</span>
									<a class="two_level" style="padding-left:10px;" data-href="__MODULE__/<{$child.controller}>/<{$child.action}>" data-title="<{$child.name}>" href="javascript:void(0)"><{$child.name}></a>
								</notempty >
							</li>
						</volist>
					</ul>
				</dd>
			</dl>
		</volist>
	</div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
	<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
		<div class="Hui-tabNav-wp">
			<ul id="min_title_list" class="acrossTab cl">
				<!-- <li class="active"><span title="欢迎页" data-href="welcome.html">欢迎页</span><em></em></li> -->
			</ul>
		</div>
		<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
	</div>
	<div id="iframe_box" class="Hui-article">
		<!-- <div class="show_iframe"> -->
			<!-- <div style="display:none" class="loading"></div> -->
			<!-- <iframe name="ifm" scrolling="yes" frameborder="0" src="__CONTROLLER__/welcome"></iframe> -->
		<!-- </div> -->
	</div>
</section>

<div class="contextMenu" id="myMenu1">
	<ul>
		<li id="open">Open </li>
		<li id="email">email </li>
		<li id="save">save </li>
		<li id="delete">delete </li>
	</ul>
</div>
<include file="Public/footer_js" />
<script type="text/javascript">
$(function(){
	var href=$('.menu_parent_li').eq(0).find('a');
	console.log(href);
	href.click();
	//新增，消息点击事件
	$("#massage_a").click(function () {
		for(var i=0;i<$(".menu-article a").length;i++){
			if($(".menu-article a").eq(i).attr('data-title')=='消息列表'){
				Hui_admin_tab($(".menu-article a").eq(i));
				$(".menu-article a").eq(i).parents('dd').show();
				$(".menu-article a").eq(i).parents('dd').prev().attr('class','selected');
			}
		}
	});
});
</script>
</body>
</html>